/*
*VMukti -- An open source video conferencing platform.
*
* Copyright (C) 2007 - 2008, VMukti Solutions Pvt. Ltd.
*
* Hardik Sanghvi <hardik@vmukti.com>
*
* See http://www.vmukti.com for more information about
* the VMukti project. Please do not directly contact
* any of the maintainers of this project for assistance;
* the project provides a web site, forums and mailing lists
* for your use.
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
*/
using System;
using CRM.DataAccess;

namespace CRM.Business
{
    public class ClsLeadCollection : ClsBaseCollection<ClsLead>
    {
        public static ClsLeadCollection GetAll(int LeadID,int LeadFieldID)
        {   try
            {
            ClsLeadCollection obj = new ClsLeadCollection();
            obj.MapObjects(new ClsDynamicScriptDataService().Lead_GetAll(LeadID, LeadFieldID));
            return obj;
            }
            catch (Exception ex)
            {
                ex.Data.Add("My Key", "ClsLeadCollection()--:--ClsLeadCollection.cs--:--" + ex.Message + " :--:--");
                ClsException.LogError(ex);
                ClsException.WriteToErrorLogFile(ex);
                return null;
            }
        }

    }
}
